﻿using System;

[AttributeUsage(AttributeTargets.Method, Inherited = true)]
public class LogOperationAttribute : Attribute
{
    public string Action { get; set; }  // 操作类型
    public string TargetEntity { get; set; }  // 操作目标
    public string ModuleName { get; set; }  // 功能模块

    public string MethodName { get; set; }

    public string Description { get; set; }  // 备注描述

    public LogOperationAttribute(string action, string targetEntity, string module,string methodName,string description = "")
    {
        Action = action;
        TargetEntity = targetEntity;
        ModuleName = module;
        MethodName = methodName;
        Description = description;
    }
}
